﻿<%@ Page Language="C#" MasterPageFile="~/impresiones/MasterImpresiones.master" AutoEventWireup="true" CodeFile="Cheques.aspx.cs" Inherits="impresiones_Cheques" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="gdvCheques" runat="server" AutoGenerateColumns="False" Width="100%">
        <RowStyle CssClass="RowStyle" />
        <Columns>
            <asp:TemplateField HeaderText="Banco">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.CuentaCorriente.Banco.Nombre") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Cuenta Cte.">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.CuentaCorriente.Numero") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="N&#186; Chequera">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Chequera.Numero") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="N&#186; Cheque">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Numero") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Detalle">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Detalle") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Fecha Emision">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# ((DateTime) Eval("FechaEmision"))==new DateTime(1900,1,1)?" - ":((DateTime) Eval("FechaEmision")).ToString("dd-MM-yyyy") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Fecha Pago">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# ((DateTime) Eval("FechaPago"))==new DateTime(1900,1,1)?" - ":((DateTime) Eval("FechaPago")).ToString("dd-MM-yyyy") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Monto">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# "$" +Eval("Monto") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nulo">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("Nulo") %>' Enabled="False" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle CssClass="PagerStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
    </asp:GridView>
</asp:Content>

